import { getCurrentInstance } from "vue";

export default function useClog(prefix = '') {
    prefix = prefix ? prefix + '> ' : ''
    const vm = getCurrentInstance()
    return function log(...args: any[]) {
        vm?.proxy?.clog?.(prefix, ...args) ?? console.log(prefix, ...args)
    }
}

